package com.ruge.algorithm.sort;

import java.util.Arrays;

/**
 * @program: ruge-algorithm
 * @description:
 * @author: ruge.wu
 * @create: 2021-12-19 23:26
 **/
public class MergeTest {
    public static void main(String[] args) {
        Integer[] arr = {10,9,8,7,6,5,4,3,2,1};
        Merge.sort(arr);
//        归并排序_元素比较的次数:15
//        归并排序_元素交换的次数:0
//        [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
        System.out.println(Arrays.toString(arr));
    }
}
